<template>
  <div class="test" >
    <el-button @click="test">改变</el-button>
    <vue-qr logoSrc="http://localhost:10798/fast/file/downloadFile/15" :text="text" :size="200"/>
  </div>
</template>

<script>
import vueQr from 'vue-qr'
export default {
  name: 'test',
  components: {
    vueQr
  },
  data() {
    return {
      text: '1231'
    }
  },
  methods: {
    test() {
      this.text = window.location.origin
    }
  },
  computed: {

  },
  mounted() {

  }
}
</script>

<style lang="scss" scoped>
.test{
  width: 300px;
  height: 100%;
}
</style>
